//Stephen Kirksharian
//Robert Harkreader
//CPSC 321
//DUE 4/27/08

`define RTYPE 6'b000000
`define BEQ   6'b000100
`define BNE   6'b000101

module ALUsrc_ctr(opcodes,control);
	input [5:0]opcodes;
	output control;
	
	reg control;

always @(opcodes) begin
	if(opcodes==`RTYPE || opcodes== `BEQ || opcodes== `BNE) control=0;
	else control=1;
end

endmodule